<template>
  <div>
    <v-nav></v-nav>
    <ul class="content">
      <li v-for="(item, index) in arr.list" :key="index" >
        <div>
          <img :src="item.pic" />
        </div>
        <div class="flex1">
          <div>{{ item.title }}</div>
          <div class="flex">
            <span>{{ item.time }}</span>
            <span>{{ item.src }}</span>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
import vNav from "../components/vNav.vue";
export default {
  name: "vNav1",
  components: {
    vNav,
  },
  data(){
    return{
      arr:{}
    }
  },
  
  mounted() {
    this.$axios.get("/news.json").then((v) => {
      this.arr=v.data.result;
    });
  },
};
</script>
<style scoped>
.content > li {
  font-size: 18px;
  display: flex;
  border-bottom: 1px solid #ddd;
  padding: 10px 10px;
}
.content > li > div:first-of-type {
  width: 35%;
}
.content > li > div:last-of-type {
  width: 80%;
  margin-left: 10px;
}
.content > li img {
  width: 100%;
  height: 100%;
}
.flex1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flex {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 20px;
  color: #b6b6b6;
}
</style>